/*
 * @Author: enmotion 
 * @Date: 2023-11-07 11:38:39 
 * @Last Modified by: enmotion
 * @Last Modified time: 2023-11-07 15:50:28
 */

import { type VmoxRouteRecordRaw } from '@src/router/use.lib';
import { useRouter } from "@src/router/use.lib";
import publicStore from "@src/stores";

const router: VmoxRouteRecordRaw = {
  name: 'login-pg',
  path: '/login-pg',
  meta: {
    keepAlive: false,
    tokenRequire: false,
    pageName: 'serre',
    powerRequire: [],
  },
  props:true,
  component:() => import("./page.vue"),
  beforeEnter:()=>{
    publicStore.useUserBaseStateStore().logout(); // 用户退登操作行为；
    const router = useRouter();
    router?.cleaRoutes();
  }
};
export default router;